[IA64] VTI: fix Oops: time tick before it's due
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Wed, 8 Mar 2006 03:01:29 +0000 (20:01 -0700)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Wed, 8 Mar 2006 03:01:29 +0000 (20:01 -0700)
commite3a98e36a287303a5025f14d12bab226f7640e3d
tree45f4eb1f7c01ff5e84254cea8706bb1db264ed0f
parente85556dec36ba45b48a92df105e4173786cb6fcc
[IA64] VTI: fix Oops: time tick before it's due

1. Guest may set itm several times in one execution of timer handler of
   guest.  VMM need to handle this situation.
2. VMM don't need to stop guest timer when switching out and rest guest
   timer when switching in, this may make room for some corner case, I don't
   figure out this kind of corner cases now :-), I just removed this logic.
3. When VMM emulate writing itv, VMM can't simply stop timer, when guest
   is masked.
4. All operations such as read/write itv, itc, itm don't need to disable
   interrupt, due to there is no conflict access.

After all these modifications, VTIdomain don't complain "Oops: time tick
before it's due", I don't do the full test:-).

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
xen/arch/ia64/vmx/vlsapic.c
xen/arch/ia64/xen/xenmisc.c
xen/include/asm-ia64/vmx_vcpu.h